.PHONY:all

all:client6#client5#client4#client3#client2#client1 #tcpClient server #tcpServer 

client6:client6.cc
	g++ -o $@ $^ -std=c++17
client5:client5.cc
	g++ -o $@ $^ -std=c++11
client4:client4.cc
	g++ -o $@ $^ -std=c++11
client3:client3.cc
	g++ -o $@ $^ -std=c++11
client2:client2.cc
	g++ -o $@ $^ -std=c++11
client1:client1.cc
	g++ -o $@ $^ -std=c++11

#tcpServer:tcpServer.cc 
#	g++ -g -o $@ $^ -std=c++11 -pthread
tcpClient:tcpClient.cc
	g++ -o $@ $^ -std=c++11
server:server.cc
	g++ -o $@ $^ -std=c++11 -pthread

.PHONY:clean
clean:
	rm -rf tcpClient tcpServer server